home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10280 < prev    next >
Encoding:
Text File  |  1996-08-05  |  789 b   |  35 lines

  1. Path: news.wyoming.com!usenet
  2. From: dcromley@wyoming.com (Dave Cromley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP! Compile Error!
  5. Date: 6 Mar 1996 21:24:40 GMT
  6. Organization: wyoming.com LLC
  7. Message-ID: <4hkvqo$rra@horn.wyoming.com>
  8. References: <4hi7vc$ggd@newsbf02.news.aol.com> <NEWTNews.12980.826064244.hampton@interramp.com>
  9. NNTP-Posting-Host: cys-cap-6.wyoming.com
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.99.2
  12.  
  13. MrBig wrote:
  14.  
  15. > SORT.CPP 7: Declaration terminated incorrectly :
  16. > #include<conio.h>
  17. > #include<stdio.h>
  18. > #include<stdlib.h>
  19. > #include<time.h>
  20. > #include<string.h>
  21. > { main()
  22. >   randomize(num1);
  23. >   if (strcmp(num1==<num2))
  24. >   ..
  25.  
  26. You need main() { instead.
  27. You probably need:
  28.   int num1;
  29.   num1 = random();
  30. You probably need:
  31.   if (strcmp(num1, nuum2)) {
  32.  
  33.   Dave C.
  34.  
  35.